package com.ecloud.gardensterminal.server;


import com.ecloud.gardensterminal.controller.vo.GardensAreaDeviceVo;
import com.ecloud.gardensterminal.domain.GardensArea;

import java.util.List;

/**
 * @author Squbi
 */
public interface GardensAreaService {
    void newArea(String areaName, String areaDescription);

    List<GardensArea> selectAllArea();

    void deleteArea(int areaId);

    void updateArea(GardensArea area);

    void newMapping(int areaId, int deviceId);

    void deleteMapping(int areaId, int deviceId);

    GardensAreaDeviceVo selectAreaMapping(int areaId);
}
